package com.magus.project.yddemo.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.magus.framework.core.repository.BaseRepository;
import com.magus.framework.core.service.BaseService;
import com.magus.project.yddemo.entity.Indicator;
import com.magus.project.yddemo.entity.IndicatorDetail;
import com.magus.project.yddemo.repository.IndicatorDetailRepository;

/**
 * 指标 Service
 * 
 * @author xujuan
 * @date 2018-01-19 15:26:53
 */
@Service
@Transactional(readOnly = true)
public class IndicatorDetailService extends BaseService<IndicatorDetail, String> {

	@Autowired
	private IndicatorDetailRepository indicatorDetailRepository;

	@Override
	protected BaseRepository<IndicatorDetail, String> getBaseRepository() {
		return this.indicatorDetailRepository;
	}
	
	public List<IndicatorDetail> findByIndivatorIn(List<Indicator> indicator){
		return indicatorDetailRepository.findByIndicatorIn(indicator);
	}

}
